<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use zhtfrontend\assets\AppAsset;
\dmstr\web\AdminLteAsset::register($this);
$app_asset=AppAsset::register($this);
if((Yii::$app->controller->uniqueId == 'role' && Yii::$app->controller->action->id == 'setaccess')
    ||(Yii::$app->controller->uniqueId == 'mechanic' && Yii::$app->controller->action->id == 'index')
    ||(Yii::$app->controller->uniqueId == 'mechanicshow' && Yii::$app->controller->action->id == 'index')
    ||(Yii::$app->controller->uniqueId == 'cateattr' && Yii::$app->controller->action->id == 'index')
    ||(Yii::$app->controller->uniqueId == 'rule' && Yii::$app->controller->action->id == 'assignpermission')
){
    $app_asset->tree=true;
}
$directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
$this->title = '豆苗朵文化教育集团有限公司';
?>
    <?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html lang="<?= Yii::$app->language ?>">
    <head>
        <meta charset="<?= Yii::$app->charset ?>"/>
<!--        <meta name="viewport" content="width=device-width, initial-scale=0,user-scalable=yes,maximum-scale=1.0">-->
        <?= Html::csrfMetaTags() ?>
        <title><?= Html::encode($this->title) ?></title>
        <?php $this->head() ?>
    </head>
    <body class="skin-purple sidebar-mini fixed">
    <?php $this->beginBody() ?>
    <!--    锁屏div-->
    <div id="index_lock_screen" style="display: none">
        <div class="top" style="width:100%;height:256px;background-repeat: no-repeat"></div>
        <div class="content2">
            <h2>锁屏状态，请输入密码解锁</h2>
            <div class="form">
                <div class='show_lock_name_label'><span>当前用户</span><span class="show_lock_name"><?= isset(\Yii::$app->user->identity)?Yii::$app->user->identity->username:'';?></span></div>
                <label>密码</label><input type="password" id="lock_password"/>
                <button class="yx-submit yx-radius5" id="lock_login" style="margin: 50px 0 0 70px;" data-url="<?= \common\components\helpers\Fun::url('site/lockscreenlogin')?>">解锁</button>
            </div>
        </div>
    </div>

    <div class="wrapper">

        <?= $this->render(
            'header.php',
            ['directoryAsset' => $directoryAsset]
        ) ?>

        <?= $this->render(
            'left.php',
            ['directoryAsset' => $directoryAsset]
        )
        ?>

        <?= $this->render(
            'content.php',
            ['content' => $content, 'directoryAsset' => $directoryAsset]
        ) ?>

    </div>

    <?php $this->endBody() ?>
    </body>
    </html>
    <?php $this->endPage() ?>
